<template>
  <div>
    <h2>我是父组件</h2>

    <h2>{{ count }}</h2>

    <Child></Child>
  </div>
</template>
<script setup>
import { inject } from 'vue'

import Child from './ChildInject.vue'

const count = inject('count')
</script>
<style lang="less"></style>
